<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/header.jsp"%>
<script type="text/javascript" src="msi/user/user.js"></script>
<div class="easyui-layout" fit="true">
	<div region="north" border="false">
		<div class="subtitle">用户管理</div>
	</div>
	<div region="center" border="false">
		<table id="userList" toolbar="#toolbar"  idField="contractId" fit="true" singleSelect="true" pagination="true" rownumbers="true">
			<thead>
				<tr>
					<th field="userId" hidden="true">用户ID</th>
					<th field="userCode" width="80">用户编号</th>
					<th field="userType" width="120" align="right">用户类型</th>
					<th field="userName" width="80">用户名称</th>
					<th field="loginName" width="80">登陆账户</th>
					<th field="sex" width="80">性别</th>
					<th field="phone" width="80">电话</th>
					<th field="address" width="80" align="right">地址</th>
					<th field="createTime" width="80" align="center">创建时间</th>
				</tr>
			</thead>
		</table>
	</div>
	<div id="toolbar" class="toolbar">
		<table cellpadding="0" cellspacing="0" style="width:100%">
			<tr>
				<td>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openUserPage();">新增用户</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="delUser();">删除用户</a>
				</td>
			</tr>
		</table>
	</div>
</div>
<div id="userDial" class="easyui-dialog" style="width:470px;height:250px;position:relative" closed="true" modal="true"></div>
<%@ include file="/include/footer.jsp"%>
<script type="text/javascript">
$(function() {
	$('#userList').datagrid({
		width : 700,
		url:"userSearchList.do",
		onDblClickRow:function(rowIndex, rowData) {
			openUserPage(rowData.userId);
		}
	});
});
</script>